#!/usr/bin/js

function crea_tabla(fils, cols){
  print("<table>");
  for(i = 0; i < fils; i++) {
    print("  <tr>");
    for ( j = 0; j < cols; j++ ) {
      print ("    <td>" + "[" + i + "," + j + "]" + "</td>");
    }
    print("  </tr>");
  }
  print("</table>");
}

crea_tabla(2, 3);
